﻿using System;

using DreamCube.Foundation.Serialization;
using DreamCube.Framework.Utilities.BasicObject;

namespace DreamCube.WebServer.WinServiceModel
{
    [JsonObject(MemberSerialization.OptIn)]
    public class KeepLiveServerConfig : ObjectX
    {
        /// <summary>
        /// 打印服务器程序的路径
        /// </summary>
        public String IISAppPath
        {
            get
            {
                return this.GetItemValue<String>("txt_iisAppPath");
            }
            set
            {
                this.SetItemValue("txt_iisAppPath", value);
            }
        }

        /// <summary>
        /// 是否自启动
        /// </summary>
        public Boolean AutoRun
        {
            get
            {
                return this.GetItemValue<Boolean>("ck_autoRun");
            }
            set
            {
                this.SetItemValue("ck_autoRun", value);
            }
        }
    }
}
